package cn.fsd.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClassTreeNode {

  private String classId;
  private Integer level;
  private String name;
  private String parentId;

  public ClassTreeNode(ClassTreeRoot root){
    this.classId = root.getClassId();
    this.name = root.getName();
    this.level = root.getLevel();
    this.parentId = root.getParentId();
  }
}
